
class Constants{
  // replaces null character
  readonly replacementChar = '\uFFFD'.charCodeAt(0)
  readonly replacementStr = '\uFFFD'
  readonly eof = ''
  readonly nullChar = '\u0000'
  readonly nullString = '\u0000'.toString()
  readonly PUBLIC_KEY = "PUBLIC"
  readonly SYSTEM_KEY = "SYSTEM"

  readonly InternalPrefix = '/';

  internalKey(key: string): string {
    return `${this.InternalPrefix}${key}`
  }

  reset(sb: string[]) {
    if (sb != null) {
      sb.length = 0
    }
  }

}

const constants = new Constants()
export default constants;